<?php
class ArticleModel extends RelationModel{
	
		var $_link = array(
			'cat'=>array(
				'mapping_type'=>HAS_ONE,
				'class_name'=>cat,
// 				'foreign_key'=>
// 				'condition'=>"violation.vcode=vinformation.vcode",
				'condition'=>"Article.pid=Cat.pid",
				'as_fields'=>"name",
				),
			
		);



}